Component({
  /**
   * 组件的属性列表
   */
  properties: {
    orderList: Object,
    currentIndex: Number
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    goOrderDetail (e) {
      let currentIndex = this.properties.currentIndex
      let oid = e.currentTarget.dataset.oid
      let url = ""
      currentIndex == 3 ? url = "/pages/user/myOrder/takeOutDetail/takeOutDetail?oid=" + oid + "&currentIndex=" + currentIndex : url = "/pages/user/myOrder/orderDetail/orderDetail?oid=" + oid + "&currentIndex=" + currentIndex
      wx.navigateTo({ url })
    }

  }
})
